Kotlin Standard Library Cookbook: Over 90 recipes to help you learn the latest features of Kotlin and write better code using the Standard Library

Kotlin Standard Library Cookbook: Over 90 recipes to help you learn the latest features of Kotlin and write better code using the Standard Library

作者: Samuel Urbanowicz
出版社: Packt Publishing
出版在: 2018-07-27
ISBN-13: 9781788837668
ISBN-10: 1788837665
裝訂格式: Paperback
總頁數: 242 頁





內容描述


Build optimized applications in Kotlin by learning how to smartly implement standard libraries.
Key Features

Get the most out of the Kotlin library to develop high-quality portable applications
Explore the powerful support for data processing and I/O operations
Discover ways to enhance your Android application development

Book Description
Given the verbosity of Java, developers have turned to Kotlin for effective software development. The Kotlin standard library provides vital tools that make day-to-day Kotlin programming easier. This library features the core attributes of the language, such as algorithmic problems, design patterns, data processing, and working with files and data streams.
The recipes in this book offer coding solutions that can be readily executed. The book covers various topics related to data processing, I/O operations, and collections transformation. We'll walk through effective design patterns in Kotlin and you'll understand how coroutines add new features to JavaScript.
As you make your way through the chapters, you'll learn how to implement clean, reusable functions and scalable interfaces containing default implementations. In the concluding chapters, we'll provide recipes on functional programming concepts, such as lambdas, monads, functors, and Kotlin scoping functions.
By the end of the book, you'll be able to address a range of problems that Kotlin developers face by implementing easy-to-follow solutions.
What you will learn

Work with ranges, progressions, and sequences in use cases
Add new functionalities to current classes with Kotlin extensions
Understand elements such as lambdas, closures, and monads
Build a REST API consumer with Retrofit and a coroutine adapter
Discover useful tips and solutions for making your Android projects
Explore the benefits of standard library features

Who this book is for
This book is for software developers who are familiar with Kotlin's basics and want to discover more advanced features and concepts, especially those provided by the Kotlin standard library. It's also ideal for experienced software developers who are familiar with the functional programming paradigm and other programming languages who want to switch to Kotlin. It will also help Java developers switch to Kotlin and integrate it into existing Java Virtual Machine (JVM) projects.
Table of Contents

Charm of ranges, progressions and sequences
Designing expressive functions and adjustable interfaces
Shaping code with Kotlin functional programming features
Powerful data processing
Tasteful design patterns based on Kotlin built-in concepts
Friendly I/O operations
Making Asynchronous programming great again
Unit tests with JUnit and Kotlin Mockito
Miscellaneous




相關書籍

第一行代碼 Java 視頻講解版

作者 李興華 馬雲濤

2018-07-27

C# 10 and .NET 6 - Modern Cross-Platform Development - Sixth Edition: Build apps, websites, and services with ASP.NET Core 6, Blazor, and EF Core 6 us

作者 Mark J. Price

2018-07-27

Visual C# 2019 基礎必修課 (適用2019/2017)

作者 蔡文龍 何嘉益 張志成 張力元 歐志信 吳明哲 策劃

2018-07-27